Skip to content

fix: improve URL serialization and query string handling#347

Merged
radist2s merged 5 commits into
mainfrom
fix/url-serializer
Jun 19, 2025
Merged

fix: improve URL serialization and query string handling#347
radist2s merged 5 commits into
mainfrom
fix/url-serializer

Conversation

@radist2s

Copy link
Copy Markdown
Collaborator

This PR contains two improvements to URL handling in the React client:

Changes

  • Fix URL serialization: Replace encodeURI with encodeURIComponent to properly handle slash serialization in path parameters
  • Refactor query string handling: Replace custom getQueryString implementation with native URLSearchParams for better maintainability

radist2s added 3 commits June 20, 2025 03:20
… encodeURI to avoid issues with slash serialization in parameters
…e URLSearchParams power instead of the custom implementation weakness
…tead of `encodeURI` to avoid issues with slash serialization in path parameters.
@changeset-bot

changeset-bot Bot commented Jun 19, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6a84635

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@openapi-qraft/react Minor
@openapi-qraft/cli Minor
@openapi-qraft/plugin Minor
@openapi-qraft/tanstack-query-react-plugin Minor
@openapi-qraft/tanstack-query-react-types Minor
@openapi-qraft/openapi-typescript-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
Comment thread packages/react-client/src/lib/urlSerializer.test.ts Fixed
@github-actions

This comment has been minimized.

@radist2s radist2s force-pushed the fix/url-serializer branch from f803fde to 11439cf Compare June 19, 2025 23:42
radist2s added 2 commits June 20, 2025 03:45
…archParams instead of custom implementation for better maintainability.
@radist2s radist2s force-pushed the fix/url-serializer branch from 11439cf to 6a84635 Compare June 19, 2025 23:45
@radist2s radist2s enabled auto-merge June 19, 2025 23:45
@radist2s radist2s merged commit f02a879 into main Jun 19, 2025
13 checks passed
@radist2s radist2s deleted the fix/url-serializer branch June 19, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants